package com.pikaqiu.serviceribbon.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/*指定服务名称*/
@FeignClient(name="client-server")
public interface UserClient {

    /*指定服务内请求路径*/
    @GetMapping("/getUserInfo")
    String getUserInfo();

    @GetMapping("/hi")
    /*当需要传递参数时 必须加@requestParam注解*/
    String hi(@RequestParam(value = "name")String name);
}
